package com.eight.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.pojo.SysAdmin;
import com.eight.vo.ChartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysAdminMapper extends BaseMapper<SysAdmin> {
    Page<SysAdmin> selectSysAdminList(@Param("adminRealname")String admin, Page<SysAdmin> page);

    /**
     * 查询所有用户的数量
     * @return 返回数量
     */
    int selectAllAdminNum();

    /**
     * 查询用户的性别
     * @return 返回用户的性别
     */
    List<ChartVo> selectAdminSex();
}
